//
//  UITextField+Placeholder.m
//  BuDeJie
//
//  Created by 梁梓烽 on 16/4/7.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import "UITextField+Placeholder.h"

@implementation UITextField (Placeholder)

-(void)setPlaceHolderColor:(UIColor *)placeHolderColor
{
    //必须现有placeholder内容,再设置placehoder的颜色
    if (self.placeholder==nil) {
     self.placeholder=@" ";
    }
    UILabel *placeHolder=[self valueForKey:@"_placeholderLabel"];
    placeHolder.textColor=placeHolderColor;
}

-(UIColor *)placeHolderColor
{
    return nil;
}
@end
